package calvin.utils;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import calvin.datastore.model.Rate;

public class RateCache {
    private static Map<String, Rate> cache = Collections.synchronizedMap(new HashMap<String, Rate>());
    
    public static Rate get(String cp) {
        return cache.get(cp);
    }
    
    public static Rate put(String cp, Rate v) {
        return cache.put(cp, v);
    }
}
